// import React from 'react'
// import ReactDom from 'react-dom'

const Display = (props) => {
  return (
    <div>{props.counter}</div>
  )
}

let n = 0

const Button = (props) => {
  console.log(props.handleClick)
  n++
  console.log(n)
  return (
    <button onClick={props.handleClick}>
      {props.text}
    </button>
  )
}

export {
  Display,
  Button
}